package com.timer.taskRule.controller;

import cn.hutool.aop.aspects.Aspect;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

@Component
public class AspectTest implements Aspect {

	@Override
	public boolean before(Object o, Method method, Object[] objects) {
		System.out.println("before");
		return false;
	}

	@Override
	public boolean after(Object o, Method method, Object[] objects, Object o1) {
		System.out.println("after");
		return false;
	}

	@Override
	public boolean afterException(Object o, Method method, Object[] objects, Throwable throwable) {
		System.out.println("afterException");
		return false;
	}
}
